﻿using SqlSugar;

namespace OnHook.Domain.Entities
{
    /// <summary>
    /// 关系变更日志
    /// </summary>
    [SugarTable("t_user_production_relation_log", TableDescription = "关系变更日志")]
    public class UserProductRelationLog : AllBaseEntity
    {
        /// <summary>
        /// 主键Id
        /// </summary>
		[SugarColumn(IsPrimaryKey = true, ColumnName = "id", ColumnDescription = "主键Id")]
        public long Id { get; set; }
        /// <summary>
        /// 关系Id
        /// </summary>
		[SugarColumn(ColumnName = "relation_id", ColumnDescription = "关系Id")]
        public long RelationId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
		[SugarColumn(ColumnName = "user_id", ColumnDescription = "用户Id")]
        public long UserId { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
		[SugarColumn(ColumnName = "order_id", ColumnDescription = "订单Id")]
        public long? OrderId { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
		[SugarColumn(ColumnName = "goods_id", ColumnDescription = "商品Id")]
        public long? GoodsId { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
		[SugarColumn(ColumnName = "product_id", ColumnDescription = "产品Id")]
        public long? ProductId { get; set; }

        /// <summary>
        /// 时间增量
        /// </summary>
		[SugarColumn(ColumnName = "incre_minutes", ColumnDescription = "时间增量")]
        public int IncreMinutes { get; set; }
    }
}
